function WlContractVOJs(){
   this.id
   ; this.no
   ; this.status
   ; this.tel
   ; this.customer
   ; this.fillDate
   ; this.startDate
   ; this.endDate
   ; this.contractType
   ; this.contRelation
   ; this.orderCode
   ; this.payWay
   ; this.checkDate
   ; this.insurance
   ; this.contractSum
   ; this.editionNo
   ; this.remark
   ; this.people
   ; this.quotations
   ; this.dep

}

/*function WlOrderVO(){
   this.id
   ; this.pathid
   ; this.pathName
   ; this.fetchCompanyID
   ; this.fetchCompanyName
   ; this.payCompanyID
   ; this.payCompany
   ; this.unloadCompanyID
   ; this.unloadCompanyName
   ; this.customerID
   ; this.customer
   ; this.customerOrderNo
   ; this.contractNo
   ; this.conveyance
   ; this.carryType
   ; this.shipperRemark
   ; this.carrierRemark
   ; this.wllevel
   ; this.customerType
   ; this.referTime
   ; this.linkMan
   ; this.tel
   ; this.bookTime
   ; this.completeTime
   ; this.formState
   ; this.planFetchTime
   ; this.fetchCompanyAddress
   ; this.fetchMan
   ; this.fetchTel
   ; this.planUnloadTime
   ; this.unloadCompanyAddress
   ; this.unloadMan
   ; this.unloadTel
   ; this.remark
   ; this.bookerId
   ; this.booker
   ; this.operatorId
   ; this.wloperator
   ; this.taskPeopleId
   ; this.taskPeople
   ; this.orderRow

}*/
function WlContractVOtoArray_fun(ulvo,edit){
            var querydata=new Array();
            var items = new Array();
            var ul=new Array();
            var ulo="";
            var le="";
            var d="",t;
            var arraytag="0";//isArray
            if(ulvo!=null){
              if(ulvo.length==undefined){
                 ul[0]=ulvo;
                 arraytag="1";
                 le=1;
              }else{
                 ul=ulvo;
                 le=ul.length;
              }        
              if(edit==false){
                    for(var i = 0; i < le; i++){		
                        items = new Array();
                        ulo=ul[i];
                        items[0] = false;
                        items[1] = ulo["ns:id"];
                        
                        items[2] = ulo["ns:no"];//
                        items[3] = ulo["ns:status"];//
                        items[4] = ulo["ns:tel"];//
                        t=ulo["ns:fillDate"];if(t!=null&&t!=undefined){items[5] = t['ns:upDate'];}
                        t=ulo["ns:startDate"];if(t!=null&&t!=undefined){items[6] = t['ns:upDate'];}
                        t=ulo["ns:endDate"];if(t!=null&&t!=undefined){items[7] = t['ns:upDate'];}
                        items[8] = ulo["ns:contractType"];//
                        items[9] = ulo["ns:contRelation"];//
                        items[10] = ulo["ns:payWay"];//
                        t=ulo["ns:checkDate"];if(t!=null&&t!=undefined){items[11] = t['ns:upDate'];}
                        items[12] = ulo["ns:insurance"];//
                        t=ulo["ns:contractSum"];if(t!=null&&t!=undefined){items[13] =  t['ns:upNumber'];}
                        t=ulo["ns:editionNo"];if(t!=null&&t!=undefined){items[14] =  t['ns:upNumber'];}
                        items[15] = ulo["ns:remark"];//
                          items[16] = WlCustomerVOtoArray_fun(ulo["ns:customer"],edit);
                         items[17] = WlQuotationVOtoArray_fun(ulo["ns:quotations"],edit);
                         items[18] = PeopleVOtoArray_fun(ulo["ns:people"],edit);
                         items[19] = WlOrderVOtoArray_fun(ulo["ns:orderCode"],edit);
                         items[20] = OrgaInfoVOtoArray_fun(ulo["ns:dep"],edit);
                      if(arraytag=="0"){
                        querydata[i]=items;
                      }else{
                        querydata=items;
                      }
                    }
                  }else{//edit==true
                    for(var i = 0; i < le; i++){		
                        items = new Array();
                        ulo=ul[i];
                        items[0] = false;
                        items[1] = ulo["ns:id"];
                        
                        items[2] = ulo["ns:no"];//
                        items[3] = ulo["ns:status"];//
                        items[4] = ulo["ns:tel"];//
                        t=ulo["ns:fillDate"];if(t!=null&&t!=undefined){
                        d=dojo.date.locale.parse(new String( t['ns:upDate']),{datePattern: "yyyy-MM-dd",timePattern:"HH:mm" });}
                        items[5] = d;
						//console.log("items[5]:"+items[5]);
                        items[6] = d;                        
                        t=ulo["ns:startDate"];if(t!=null&&t!=undefined){
                        d=dojo.date.locale.parse(new String( t['ns:upDate']),{datePattern: "yyyy-MM-dd",timePattern:"HH:mm" });}
                        items[7] = d;
                        items[8] = d;                        
                        t=ulo["ns:endDate"];if(t!=null&&t!=undefined){
                        d=dojo.date.locale.parse(new String( t['ns:upDate']),{datePattern: "yyyy-MM-dd",timePattern:"HH:mm" });}
                        items[9] = d;
                        items[10] = d;                        
                        items[11] = ulo["ns:contractType"];//
                        items[12] = ulo["ns:contRelation"];//
                        items[13] = ulo["ns:payWay"];//
                        t=ulo["ns:checkDate"];if(t!=null&&t!=undefined){
                        d=dojo.date.locale.parse(new String( t['ns:upDate']),{datePattern: "yyyy-MM-dd",timePattern:"HH:mm" });}
                        items[14] = d;
                        items[15] = d;                        
                        items[16] = ulo["ns:insurance"];//
                        t=ulo["ns:contractSum"];if(t!=null&&t!=undefined){items[17] =  t['ns:upNumber'];}
                        t=ulo["ns:editionNo"];if(t!=null&&t!=undefined){items[18] =  t['ns:upNumber'];}
                        items[19] = ulo["ns:remark"];//
                         items[20] = WlCustomerVOtoArray_fun(ulo["ns:customer"],edit);
                         items[21] = WlQuotationVOtoArray_fun(ulo["ns:quotations"],edit);
                         items[22] = PeopleVOtoArray_fun(ulo["ns:people"],edit);
                         items[23] = WlOrderVOtoArray_fun(ulo["ns:orderCode"],edit);
                         items[24] = OrgaInfoVOtoArray_fun(ulo["ns:dep"],edit);
                      if(arraytag=="0"){
                        querydata[i]=items;
                      }else{
                        querydata=items;
                      }
                    }
                  } 
            }//!=null                     
            return querydata;
}
